package br.net.woodstock.tickettoride.api.manager;

import java.util.Collection;
import java.util.Date;

import br.net.woodstock.rockframework.domain.service.Service;
import br.net.woodstock.tickettoride.orm.Ticket;

public interface TicketService extends Service {

	Ticket getById(Integer id);

	Ticket getByHash(String hash);

	Integer create(Integer sessionId, Integer[] applicationId, byte[] data, Date expires);

	byte[] getEncryptedTicketData(Integer sessionId, Integer ticketId);

	String getPlainTicketData(Integer id);

	Collection<Ticket> listByApplication(Integer fromApplicationId, Integer toApplicationId);

}
